import postcssPresetEnv from "postcss-preset-env";
import mixins from "postcss-mixins";
import pxtorem from "postcss-pxtorem";
import atImport from "postcss-import";

export default {
  plugins: [
    atImport({
      addModulesDirectories: ['node_module']
    }),
    mixins({
      mixinsDir: './src/styles/mixins', // 绝对路径不行
    }),
    postcssPresetEnv({
      stage: 0,
      browsers: 'last 2 versions'
    }),
    pxtorem({
      rootValue: 37.5,
      propList: ['*', '!border*'],
      exclude: './node_modules/*',
      minPixelValue: 8
    })
  ]
}
